package com.meituan.stock.api.http.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author ShenWenhao
 * @Created by ShenWenhao
 * @Date 2022/5/9 15:29
 */
@Data
@ApiModel("初始化库存")
public class InitStockHttpRequest {

    @NotNull
    @ApiModelProperty("商品id")
    private Long goodId;

    @NotNull
    @ApiModelProperty("仓库id")
    private Long warehouseId;

    @NotNull
    @Max(Integer.MAX_VALUE)
    @Min(0)
    @ApiModelProperty("商品数量")
    private Integer account;

    @NotNull
    @Min(0)
    @ApiModelProperty("商品金额")
    private BigDecimal money;

}
